package psn.zjk.common.jdk.juc;

import lombok.SneakyThrows;

/**
 * @USER white
 * @DATETIME 2021/1/13 7:03
 */
public class SynchronisedDemo {


    @SneakyThrows
    public void lock(){
        Thread thread = Thread.currentThread();
        synchronized (thread){
            thread.wait();
        }

    }


    public static void main(String[] args) {
        new SynchronisedDemo().lock();
    }

}
